﻿<%@ Page Title="Gerenciar Descontos" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Desconto_Listar.aspx.cs" Inherits="ProjetoJornada.Interno.Desconto_Listar" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>

    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 151px;
        }
        .style2
        {
            width: 202px;
        }
        .style3
        {
            width: 120px;
        }
    </style>
    
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:GridView ID="GridView_Descontos" runat="server" 
        AutoGenerateColumns="False" onrowdeleting="GridView_Descontos_RowDeleting" 
        CellPadding="3" ForeColor="Black" GridLines="Vertical" BackColor="White" 
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px">
        <Columns>
            <asp:BoundField AccessibleHeaderText="Motivo" DataField="Motivo" 
                HeaderText="Motivo" NullDisplayText="-" />
            <asp:BoundField AccessibleHeaderText="Valor" DataField="Valor" 
                HeaderText="Valor" NullDisplayText="-" DataFormatString="{0:c}" />
            
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%#"Desconto_Editar.aspx?id=" + Eval("Id")%>' style="text-align:center;">
                        <asp:Image ID="imgEdit" runat="server" BorderStyle="None" ImageUrl="../imagens/edit.png" />
                    </a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="center"/>
            </asp:TemplateField>
            
            <asp:CommandField ShowDeleteButton="True" ButtonType="Image" 
                DeleteImageUrl="~/imagens/delete.png" DeleteText="" />
            
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#CCCCCC" />
    </asp:GridView>

    <a href="Desconto_Cadastro.aspx" >Inserir outro tipo de desconto </a>
</asp:Content>
